package com.ssy.lingxi.platform.manage.model.request.content;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 素材管理 - 新增- 请求实体类
 * @author xiecehnhui
 * @version 2.0.0
 * @date 2022/03/24
 */
@Data
public class MaterialLibraryAddRequest {

    @ApiModelProperty(value = "主键id")
    private Long id;

    @ApiModelProperty(value = "素材名称")
    @NotEmpty(message = "素材名称不能为空")
    private String fileName;

    @ApiModelProperty(value = "素材url")
    @NotEmpty(message = "素材url不能为空")
    private String fileUrl;

    @ApiModelProperty(value = "素材类型 1-图片 2-视频 3-文件")
    @NotNull(message = "素材类型不能为空")
    private Integer fileType;

    @ApiModelProperty(value = "会员名称")
    private String memberName;
}
